/**
	
	Point

	@version 2005-08-18
*/



class timber.math.Utils
{
	
	static public function dist(x,y,x2,y2) {
		return Math.sqrt((x-x2)*(x-x2)+(y-y2)*(y-y2));
	}
	
	// normalizes a value to a number between min and max
	static public function normalize(val:Number, min:Number, max:Number):Number {
		return min + (val/(max - min));
	}

};